import axios from '@/utils/request'
// 医护相关接口

/**
 * 医护人员查看申请待确认关联患者
 * @param {*} data
 * @returns
 */
export function associationConfirmed (data) {
  return axios({
    method: 'POST',
    url: '/medical/associationConfirmed',
    data
  })
}
/**
 * 待评估患者列表
 * @param {*} data
 * @returns
 */
export function evaluateList (data) {
  return axios({
    method: 'POST',
    url: '/medical/evaluateList',
    data
  })
}
/**
 * 待补处方信息列表
 * @param {*} data
 * @returns
 */
export function fillPrescriptionList (data) {
  return axios({
    method: 'POST',
    url: '/medical/fillPrescriptionList ',
    data
  })
}
/**
 * 恶心呕吐列表
 * @param {*} data
 * @returns
 */
export function vomitList (data) {
  return axios({
    method: 'POST',
    url: '/medical/vomitList',
    data
  })
}
/**
 * 医护人员同意/拒绝关联
 * @param {*} data
 * @returns
 */
export function operationAssociated (data) {
  return axios({
    method: 'POST',
    url: '/medical/operationAssociated',
    data
  })
}
/**
 * 医护人员评估患者评估
 * @param {*} data
 * @returns
 */
export function cinvAssess (data) {
  return axios({
    method: 'POST',
    url: '/medical/cinvAssess',
    data
  })
}
/**
 * 搜索静脉注射抗肿瘤药物列表
 * @param {*} data
 * @returns
 */
export function intravenousList (data) {
  return axios({
    method: 'POST',
    url: '/medical/intravenousList',
    data
  })
}
/**
 * 搜索口服抗肿瘤药物列表
 * @param {*} data
 * @returns
 */
export function antitumorList (data) {
  return axios({
    method: 'POST',
    url: '/medical/antitumorList',
    data
  })
}
/**
 * cinv用药处方新增
 * @param {*} data
 * @returns
 */
export function prescription (data) {
  return axios({
    method: 'POST',
    url: '/medical/prescription',
    data
  })
}
/**
 *cinv用药处方删除
 * @param {*} id
 * @param {*} drug_id
 * @returns
 */
export function delPrescription (data) {
  return axios({
    method: 'POST',
    url: '/medical/delPrescription',
    data
  })
}
/**
 * cinv用药处方新增 -> 药物类型
 * @param {*} data
 * @returns
 */
export function drugType (data) {
  return axios({
    method: 'POST',
    url: '/medical/drugType',
    data
  })
}
/**
 * cinv用药处方新增 -> 药物列表
 * @param {*} type_id
 * @returns
 */
export function drugList (data) {
  return axios({
    method: 'POST',
    url: '/medical/drugList',
    data
  })
}
/**
 * 医护查看已和自己关联的患者列表
 * @param {*} data
 * @returns
 */
export function beenAssociation (data) {
  return axios({
    method: 'POST',
    url: '/medical/beenAssociation',
    data
  })
}
/**
 * 医护查看患者详情
 * @param {*} data
 * @returns
 */
export function patientDetail (data) {
  return axios({
    method: 'POST',
    url: '/patients/patientDetail',
    data
  })
}
/**
 * 搜索医护患教视频列表
 * @param {*} page_index page_size keyword
 * @returns
 */
export function teachVideoList (data) {
  return axios({
    method: 'POST',
    url: '/medical/teachVideoList',
    data
  })
}
/**
 *医护人员绑定患教视频
 * @param {*} video_id 患教视频id
 * @returns
 */
export function bindVideo (data) {
  return axios({
    method: 'POST',
    url: '/medical/bindVideo',
    data
  })
}
/**
 * 医护查看既往治疗周期
 * @param {*} patients_id
 * @returns
 */
export function treatmentCycle (data) {
  return axios({
    method: 'POST',
    url: '/medical/treatmentCycle',
    data
  })
}
/**
 * 医护解除患者关联
 * @param {string} patients_id
 * @returns
 */
export function removeAssociate (data) {
  return axios({
    method: 'POST',
    url: '/medical/removeAssociate',
    data
  })
}
/**
 * 待补处方信息查看/报告恶心呕吐患者
 * @param {string} id
 * @returns
 */
export function fillPrescription (data) {
  return axios({
    method: 'POST',
    url: '/medical/fillPrescription',
    data
  })
}
/**
 * 恶心呕吐查看
 * @param {*} id
 * @param {*} date
 * @returns
 */
export function vomitDetail (data) {
  return axios({
    method: 'POST',
    url: '/medical/vomitDetail',
    data
  })
}
/**
 * 套餐列表
 * @param {*} data
 * @returns
 */
export function packageList (data) {
  return axios({
    method: 'POST',
    url: '/medical/packageList',
    data
  })
}
/**
 * 套餐新增
 * @param {*} data
 * @returns
 */
export function addPackage (data) {
  return axios({
    method: 'POST',
    url: '/medical/addPackage',
    data
  })
}
/**
 * 编辑套餐
 * @param {*} data
 * @returns
 */
export function editPackage (data) {
  return axios({
    method: 'POST',
    url: '/medical/editPackage',
    data
  })
}
/**
 * 删除套餐
 * @param {*} data
 * @returns
 */
export function delPackage (data) {
  return axios({
    method: 'POST',
    url: '/medical/delPackage',
    data
  })
}
